using System;
using System.Windows.Forms;

namespace Net.SamuelChen.Libs.WinForm.Calendar
{
	/// <summary>
	/// Summary description for CalendarEventArgs.
	/// </summary>
	public class CalendarMouseEventArgs
	{
		private MonthViewCell _cell = null;
		private DateTime _activeDate = DateTime.Today;
		private MouseEventArgs _mouseEvent = null;

		internal CalendarMouseEventArgs(MouseEventArgs e, MonthViewCell cell, DateTime activeDate)
		{
			_mouseEvent = new MouseEventArgs(e.Button, e.Clicks, e.X, e.Y, e.Delta);
			_cell = new MonthViewCell();
			_cell.ClientRect = new System.Drawing.Rectangle(cell.ClientRect.Location, cell.ClientRect.Size);
			_cell.Day = cell.Day;
			_cell.DayPosition = _cell.DayPosition;
			_activeDate = activeDate;
		}

		internal MonthViewCell Cell {
			get {
				return _cell;
			}
		}

		internal DateTime ActiveDate {
			get {
				return _activeDate;
			}
		}

		internal MouseEventArgs MouseEvent {
			get {
				return _mouseEvent;
			}
		}
	}
}
